//
//  NewsSetViewController.m
//  WE
//
//  Created by apple on 15/11/28.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "NewsSetViewController.h"
#import "Size.h"

@interface NewsSetViewController ()

@end

@implementation NewsSetViewController
- (void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBar.hidden = NO;
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"新消息设置";
    self.view.backgroundColor = [UIColor colorWithRed:229/255. green:229/255. blue:229/255. alpha:1.0];
    UIView *voiceView = [[UIView alloc] initWithFrame:CGRectMake(0, 80, WindowWidth, 80)];
    voiceView.backgroundColor = [UIColor whiteColor];
    UILabel *voiceLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 30, 100, 20)];
    voiceLabel.text = @"声音提示";
    voiceLabel.textColor = [UIColor blackColor];
    voiceLabel.textAlignment = NSTextAlignmentCenter;
    voiceLabel.backgroundColor = [UIColor whiteColor];
    [voiceView addSubview:voiceLabel];
    UISwitch *voiceSwitch = [[UISwitch alloc] initWithFrame:CGRectMake(WindowWidth - 70, 30, 30, 20)];
    voiceSwitch.on = YES;
    [voiceView addSubview:voiceSwitch];
    [self.view addSubview:voiceView];
    
    UIView *shakeView = [[UIView alloc] initWithFrame:CGRectMake(0, 161, WindowWidth, 80)];
    shakeView.backgroundColor = [UIColor whiteColor];
    UILabel *shakeLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 30, 100, 20)];
    shakeLabel.text = @"震动提示";
    shakeLabel.textColor = [UIColor blackColor];
    shakeLabel.textAlignment = NSTextAlignmentCenter;
    shakeLabel.backgroundColor = [UIColor whiteColor];
    [shakeView addSubview:shakeLabel];
    UISwitch *shakeSwitch = [[UISwitch alloc] initWithFrame:CGRectMake(WindowWidth - 70, 30, 30, 20)];
    shakeSwitch.on = YES;
    [shakeView addSubview:shakeSwitch];
    [self.view addSubview:shakeView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
